'use strict';
const db = uniCloud.database();
exports.main = async (event, context) => {
	let res = await db.collection('store')
		.aggregate()
		.lookup({
			from: 'good', //要联查哪个表
			localField: '_id', //本表字段
			foreignField: 'store_id', //关联字段
			as: 'goodList' //别名
		})
		.end()
	return res;
};